<?php
//header("Content-Type:text/html;charset=GB2312");
$qu_id= $_GET['id'];
if(is_numeric($qu_id)){
	require_once("./includes/configure.php");
	require_once("./includes/database.php");
	$db = Database::Connect();
	$zufang_shangquan_array = $db->getShangquanArray($qu_id);

	echo '<select name="quyu2" id="quyu2">';
	echo '<option value=""> --不限商圈-- </option>';
	if(is_numeric($_GET['quyu2'])){
		$quyu2_id = $_GET['quyu2'];
	}
	for($ii=0;$ii<count($zufang_shangquan_array);$ii++){
		if($quyu2_id==$zufang_shangquan_array[$ii]['this_id']){
			$select = " selected ";
		}
		echo "<option $select value='".$zufang_shangquan_array[$ii]['this_id']."'> ".$zufang_shangquan_array[$ii]['value']."</option>";
	}
	echo '</select>';
}else{
	exit;
}
?>